<case value="user_name">
    <style>
    	
    	@media only screen and (min-width: 100px) and (max-width: 640px) {
    	.nameHQ{ height: 30px; margin-top: 10px;}
    	}
    </style>
    <input type="text" class="form-control input text" name="{$[type]form.name}"style="float:left;"  value="{$[type]form.value}" {$[type]form.extra_attr}><button type="button" onclick="get_name('{$[type]form.name}')"  class="nameHQ">获取姓名</button>
   <div id="{$[type]form.name}"style="display:inline-block;line-height: 30px;"></div>
 <script type="text/javascript">
    function get_name(e)
    {
 		 var tuijian=$('input[name='+e+']').val(); 
    	 $.getJSON("{:U('Api/Ajax/get_tuijain_js')}",{tuijian:tuijian},function(json){
	        	 $("#"+e).html("名称："+json.name);
	    });	 
    }
   
  
   </script>
</case>